<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="b" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<h1>HOME!</h1>
	<h3>welcome! ${user1.userName}</h3>
	<c:forEach items="${functions}" var="functions">
		<c:choose>
			<c:when test="${functions.id == 1}">
				<a href="<%=basePath%>account/manageUser">${functions.usableFunction}</a>
			</c:when>
			<c:when test="${functions.id == 5}">
				<a href="<%=basePath%>account/manageUser">${functions.usableFunction}</a>
			</c:when>
		</c:choose>
	</c:forEach>
</body>
</html>